﻿/*!	r_rtti_reflection_typename_basicdef.h
	@brief	RTTIプロパティ
Copyright (c) 2010 Yuya Yamaguchi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef _R_RTTI_REFLECTION_TYPENAME_BASICDEF_H_
#define _R_RTTI_REFLECTION_TYPENAME_BASICDEF_H_

#include "r_rtti_info.h"

namespace r{
	namespace rtti{
		//! 文字列
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_string>() {
			return _RST ( "string" );
		}
		// プリミティブ型
		//! r_bool
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_bool>() {
			return _RST ( "r_bool" );
		}

		//! r_si8
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_si8>() {
			return _RST ( "r_si8" );
		}

		//! r_ui8
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_ui8>() {
			return _RST ( "r_ui8" );
		}

		//! r_si16
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_si16>() {
			return _RST ( "r_si16" );
		}

		//! r_ui16
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_ui16>() {
			return _RST ( "r_ui16" );
		}

		//! r_si32
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_si32>() {
			return _RST ( "r_si32" );
		}

		//! r_ui32
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_ui32>() {
			return _RST ( "r_ui32" );
		}

		//! r_si64
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_si64>() {
			return _RST ( "r_si64" );
		}

		//! r_ui64
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_ui64>() {
			return _RST ( "r_ui64" );
		}

		//! r_f32
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_f32>() {
			return _RST ( "r_f32" );
		}

		//! r_f64
		template<>
		static inline
		const r_cstr	getTypeNameStr<r_f64>() {
			return _RST ( "r_f64" );
		}
	}
}


#endif // _R_RTTI_REFLECTION_TYPENAME_BASICDEF_H_
